package com.example.shirodemo.controller.admin;

import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.StrUtil;
import com.example.shirodemo.constant.HttpCode;
import com.example.shirodemo.dto.ResponseResult;
import com.example.shirodemo.dto.ResponseResultPage;
import com.example.shirodemo.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 绫小路
 * @date 2021/1/10 20:04
 * @description
 */
@Api(tags="02-后台页面：仪表盘、授权管理、用户信息等页面 - AccountController")
@Controller
@RequestMapping("/admin")
public class AdminController {

  @Autowired
  private UserService userService;

  @ApiOperation("后台管理页面")
  @GetMapping("")
  public String index() {
    return "admin/index";
  }

  @ApiOperation("后台管理欢迎页面")
  @GetMapping("welcome")
  public String welcome() {
    return "admin/welcome";
  }

  @ApiOperation("后台角色管理页面")
  @GetMapping("role")
  public String role() {
    return "admin/admin-role";
  }

  @ApiOperation("后台菜单管理页面")
  @GetMapping("menu")
  public String menu() {
    return "admin/admin-menu";
  }

  @ApiOperation("后台用户管理页面")
  @GetMapping("user")
  public String user() {
    return "admin/admin-user";
  }
}
